libxenlight: refactor libxl destroy code
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 4 Dec 2009 07:03:45 +0000 (07:03 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 4 Dec 2009 07:03:45 +0000 (07:03 +0000)
commite7a148852014f1ea1e5f5540f9875f6551981b31
tree1fe8697de5909b5bd8f35eca57990a8946fd06fc
parent88de8df0dca10d6c7f8bca833f09b324216ac318
libxenlight: refactor libxl destroy code

Refactor libxl device destroy code. Abstract function
waiting for the watch on the state node to fire.
Create a generic device delete function.

Only a single LIBXL_DESTROY_TIMEOUT elapses when
waiting for destruction of all the devices of a
domain.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.com>
tools/libxl/libxl_device.c
tools/libxl/libxl_internal.h